#ifndef SYSSQLINTERPRETER_H
#define SYSSQLINTERPRETER_H

#include "cnsMacroGlobal.h"
#include <QSharedPointer>
#include "cnsComponent.h"

class SysSqlInterpreter : public QObject
{
    Q_OBJECT
public:
    Q_INVOKABLE SysSqlInterpreter();
    Q_INVOKABLE bool f_start(uint8_t &breakoff, CnsComponentPtr com);
    bool getSqlStringFromFile(uint8_t &breakoff, QString &sqlString);
    Q_INVOKABLE bool f_replaceSqlString(CnsComponentPtr com, const QSSHASH &patterns, QString &sqlString);
};

Q_DECLARE_METATYPE(SysSqlInterpreter*)

#endif // SYSSQLINTERPRETER_H
